import React from 'react'
import store, {incrementAction, decrementAction, incrementAsynAction} from '../../store'

export default function CountUpdate() {
  return (
    <div>
      <button onClick={() => store.dispatch(incrementAction(3))}>增加</button>
      <button onClick={() => store.dispatch(decrementAction(3))}>减少</button>
      <button onClick={() => store.dispatch(incrementAsynAction(2))}>延迟1S增加</button>
    </div>
  )
}
